﻿using System;
using System.Text;
using System.Data;

namespace SIS.DataAccess
{
	/// <summary>
	/// Author: hieunv
	/// </summary>
	class Classroom : System.Data.DataTable
	{
		public const string BUILDING = "building";
		public const string ROOM_NUMBER = "room_number";
		public const string CAPACITY = "capacity";

		public Classroom()
			: base("Classroom")
		{
			var building = new DataColumn(BUILDING, typeof(string));
			building.AllowDBNull = false;
			this.Columns.Add(building);
			var roomNumber = new DataColumn(ROOM_NUMBER, typeof(string));
			roomNumber.AllowDBNull = false;
			this.Columns.Add(roomNumber);
			var capacity = new DataColumn(CAPACITY, typeof(int));
			capacity.AllowDBNull = false;
			this.Columns.Add(capacity);
			this.PrimaryKey = new DataColumn[] { building, roomNumber };
		}
	}
}
